﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:SharePointOptimizer.PL.WPF" >

    <DataTemplate x:Key="IssueTemp" DataType="{x:Type local:IssueInstance}">
       
            <Grid Margin="44,52,28,111">
            <Expander 
                Header="{Binding Path=.}" 
                HorizontalAlignment="Left" 
                Margin="24,8,0,157">
             <Grid 
                 Background="#FFE5E5E5" 
                 Width="503.437">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="0.154*"/>
                            <ColumnDefinition Width="0.102*"/>
                            <ColumnDefinition Width="0.741*"/>
                            <ColumnDefinition Width="0.003*"/>
                        </Grid.ColumnDefinitions>
                    <Label Content="{Binding Path=Categories}" 
                           Margin="2,1,66.807,0" 
                           VerticalAlignment="Top" 
                           Grid.ColumnSpan="4"/>
                        <ListBox 
                            Grid.ColumnSpan="3" 
                            Height="26" 
                            Margin="8,24.277,48.49,0"
                            VerticalAlignment="Top" 
                            IsSynchronizedWithCurrentItem="True" 
                            ItemsSource="{Binding Path=Categories/Issues/Description}"                                
                            Width="Auto"
                            DisplayMemberPath="Name"/>
                    <Label 
                        Content="Databases" 
                        Margin="8,56.277,0,0" 
                        VerticalAlignment="Top" 
                        FontWeight="Bold"
                        />
                        <ListBox
                            Margin="15,107.553,-39.507,0"                            
                            ItemsSource="{Binding Path=Databases}"                           
                            Grid.ColumnSpan="2" 
                            Height="Auto"
                            Width="Auto"
                            DisplayMemberPath="Name"
                            />
                    <ListBox ItemsSource="{Binding Path=Databases/Categories}" 
                               Margin="12,78.554,11,0" 
                               VerticalAlignment="Top" 
                               Height="Auto" 
                                Width="Auto"
                              Grid.ColumnSpan="2" 
                               DisplayMemberPath="Name"
                               />
                        <TextBlock 
                            Margin="15,135.83,-7.6,114.446" 
                            TextWrapping="Wrap" 
                            Text="{Binding Path=Databases/Categories/Issues/Description}"
                            Grid.ColumnSpan="2"
                            Width="Auto"/>
                        <Image Grid.Column="2" HorizontalAlignment="Right" Margin="0,134,20,121.446" Width="26.933"/>
                        <Image Grid.Column="2" Height="22" Margin="0,25.277,22,0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="18.927"/>
                    </Grid>
                </Expander>
            </Grid>
        

    </DataTemplate>


</ResourceDictionary>